import java.util.Scanner;

public class 输出二进制 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] a = new int[8];
        int n = scanner.nextInt();
        String s = Integer.toBinaryString(n);
        for (int i = 8-s.length(),j=0; i < a.length; i++,j++) {
                a[i] =  Integer.parseInt(String.valueOf(s.charAt(j)));
        }
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]);
        }
    }
}
